import { TSkill } from "../../../../Message/Db/Tables/TSkill";
import { SkillInfo } from "../../model/SkillInfo";
import { ToolTipInfo } from "../../model/ToolTipInfo";
import { SkillConfig } from "../SkillConfig";
type int = number;
//class SkillLevelGetInfo
    
    export  class SkillLevelGetInfo
    {
       

        public get tskill(): TSkill
        {
            return this._tskill;
        }

        public get skillInfo(): SkillInfo
        {
            return this._skillInfo;
        }

        public get needLevel(): int
        {
            if (this._tskill) 
            {
                return this._tskill.levelLimited;
            }
            return 0;
        }

        public get skillCareer(): int
        {
            if (this._skillInfo) 
            {
                return this._skillInfo.skillCareer;
            }
            return 0;
        }

        public get toolTipData(): ToolTipInfo
        {
            return this._skillInfo.getShortToolTips();
        }

        public initData(): void
        {
            this._tskill = SkillConfig.instance.getInfoByName(this.skillId);
            this._skillInfo = new SkillInfo();
            this._skillInfo.learned = false;
            this._skillInfo.tSkill = this._tskill;
            return;
        }

        public /* var */skillId: int;

        public /* var */showName: string;

        public /* var */showInfo: string;

        /* internal */ /* var */_tskill: TSkill;

        /* internal */ /* var */_skillInfo: SkillInfo;
    }
